<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PowerVR SDK</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<table width="100%">
  <tr>
    <td width="33%">
      <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
    </td>
    <td width="33%">
      <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
    </td>
    <td width="34%">
      <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
    </td>
  </tr>
</table>
<hr>
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>PVRTError.h</h1><a href="PVRTError_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
00002 <span class="comment"></span>
00003 <span class="comment"> @File         PVRTError.h</span>
00004 <span class="comment"></span>
00005 <span class="comment"> @Title        PVRTError</span>
00006 <span class="comment"></span>
00007 <span class="comment"> @Version      </span>
00008 <span class="comment"></span>
00009 <span class="comment"> @Copyright    Copyright (C)  Imagination Technologies Limited.</span>
00010 <span class="comment"></span>
00011 <span class="comment"> @Platform     ANSI compatible</span>
00012 <span class="comment"></span>
00013 <span class="comment"> @Description  </span>
00014 <span class="comment"></span>
00015 <span class="comment">******************************************************************************/</span>
00016 <span class="preprocessor">#ifndef _PVRTERROR_H_</span>
00017 <span class="preprocessor"></span><span class="preprocessor">#define _PVRTERROR_H_</span>
00018 <span class="preprocessor"></span>
00019 <span class="preprocessor">#if defined(__BADA__)</span>
00020 <span class="preprocessor"></span><span class="preprocessor">#include &lt;FApp.h&gt;</span>
00021 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
00022 <span class="preprocessor">#else</span>
00023 <span class="preprocessor"></span><span class="preprocessor">#if defined(__SYMBIAN32__)</span>
00024 <span class="preprocessor"></span><span class="preprocessor">#include &lt;e32debug.h&gt;</span>
00025 <span class="preprocessor">#elif defined(_WIN32) &amp;&amp; !defined(UNDER_CE)</span>
00026 <span class="preprocessor"></span><span class="preprocessor">#include &lt;windows.h&gt;</span>
00027 <span class="preprocessor">#else</span>
00028 <span class="preprocessor"></span><span class="preprocessor">#include &lt;stdio.h&gt;</span>
00029 <span class="preprocessor">#endif</span>
00030 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00031 <span class="preprocessor"></span><span class="comment">/*!***************************************************************************</span>
00032 <span class="comment"> Macros</span>
00033 <span class="comment">*****************************************************************************/</span>
00034 
00036 <span class="preprocessor">#ifndef PVRTERROR_OUTPUT_DEBUG</span>
00037 <span class="preprocessor"></span><span class="preprocessor">    #if defined(_DEBUG) || defined(DEBUG)</span>
00038 <span class="preprocessor"></span><span class="preprocessor">        #if defined(__SYMBIAN32__)</span>
00039 <span class="preprocessor"></span><span class="preprocessor">            #define PVRTERROR_OUTPUT_DEBUG(A) RDebug::Printf(A);</span>
00040 <span class="preprocessor"></span><span class="preprocessor">        #elif defined(__BADA__)</span>
00041 <span class="preprocessor"></span><span class="preprocessor">            #define PVRTERROR_OUTPUT_DEBUG(A) AppLog(A);</span>
00042 <span class="preprocessor"></span><span class="preprocessor">        #elif defined(_WIN32) &amp;&amp; !defined(UNDER_CE)</span>
00043 <span class="preprocessor"></span><span class="preprocessor">            #define PVRTERROR_OUTPUT_DEBUG(A) OutputDebugStringA(A);</span>
00044 <span class="preprocessor"></span><span class="preprocessor">        #else</span>
00045 <span class="preprocessor"></span><span class="preprocessor">            #define PVRTERROR_OUTPUT_DEBUG(A) fprintf(stderr,A);</span>
00046 <span class="preprocessor"></span><span class="preprocessor">        #endif</span>
00047 <span class="preprocessor"></span><span class="preprocessor">    #else</span>
00048 <span class="preprocessor"></span><span class="preprocessor">        #define PVRTERROR_OUTPUT_DEBUG(A)</span>
00049 <span class="preprocessor"></span><span class="preprocessor">    #endif</span>
00050 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00051 <span class="preprocessor"></span>
<a name="l00052"></a><a class="code" href="PVRTError_8h.html#a0">00052</a> 
00053 <span class="comment">/*!***************************************************************************</span>
00054 <span class="comment"> Enums</span>
00055 <span class="comment">*****************************************************************************/</span>
00057 <span class="keyword">enum</span> <a class="code" href="PVRTError_8h.html#a5">EPVRTError</a>
00058 {
00059     <a class="code" href="PVRTError_8h.html#a5a1">PVR_SUCCESS</a> = 0,
00060     <a class="code" href="PVRTError_8h.html#a5a2">PVR_FAIL</a> = 1,
<a name="l00061"></a><a class="code" href="PVRTError_8h.html#a5">00061</a>     <a class="code" href="PVRTError_8h.html#a5a3">PVR_OVERFLOW</a> = 2
00062 };
00063 
00064 <span class="comment">/*!***************************************************************************</span>
00065 <span class="comment"> @Function          PVRTErrorOutputDebug</span>
00066 <span class="comment"> @Input             format      printf style format followed by arguments it requires</span>
00067 <span class="comment"> @Description       Outputs a string to the standard error.</span>
00068 <span class="comment">*****************************************************************************/</span>
00069 <span class="keywordtype">void</span> <a class="code" href="PVRTError_8h.html#a4">PVRTErrorOutputDebug</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> * <span class="keyword">const</span> format, ...);
00070 
00071 <span class="preprocessor">#endif // _PVRTERROR_H_</span>
00072 <span class="preprocessor"></span>
00073 <span class="comment">/*****************************************************************************</span>
00074 <span class="comment">End of file (PVRTError.h)</span>
00075 <span class="comment">*****************************************************************************/</span>
00076 
</pre></div><br>
<br>
<P align=left><FONT size=2><STRONG><A 
   href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> � 
   1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
<hr>
<address style="align: left;"><small><FONT color=f0f>
Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
</body>
</html>
